package com.ruoyi.system.service.impl;

import com.ruoyi.common.core.domain.entity.ExaminePlanDetail;
import com.ruoyi.system.mapper.ExaminePlanDetailMapper;
import com.ruoyi.system.service.ExaminePlanDetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author: ruohao
 * @Date: 2023/9/3
 **/
@Service
public class ExaminePlanDetailServiceImpl implements ExaminePlanDetailService {
    @Autowired
    ExaminePlanDetailMapper examinePlanDetailMapper;
    @Override
    public List<ExaminePlanDetail> selectList(ExaminePlanDetail examinePlanDetail) {
        return examinePlanDetailMapper.selectList(examinePlanDetail);
    }

    @Override
    public ExaminePlanDetail selectById(Long id) {
        return examinePlanDetailMapper.selectById(id);
    }

    @Override
    public Boolean create(ExaminePlanDetail examinePlanDetail) {
        return examinePlanDetailMapper.insert(examinePlanDetail) == 1;
    }

    @Override
    public Boolean update(ExaminePlanDetail examinePlanDetail) {
        return examinePlanDetailMapper.update(examinePlanDetail) == 1;
    }

    @Override
    public Boolean deleteById(Long id) {
        return examinePlanDetailMapper.deleteById(id) == 1;
    }
}
